<!DOCTYPE html>
<html>
<!-- head -->
{include file="Change/inner/head"}
<link rel="stylesheet" href="__app__/admin/view/Change/configCenter/menuList.css">
<body>
<!---------------- 菜单项配置激活页面 ------------------->

<!-- 页头 -->
{include file="Change/inner/header"}
<!-- jsfiles -->
{include file="Change/inner/jsfiles"}
{include file="common/page/dialog"}
<!-- 主体 -->
<div class="content container-fluid">
    <div class="row">
        <div class="col-md-2 left-section">
            {include file="Change/inner/leftBar"}
        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3>配置中心</h3>
            <div class="inner-section row">
				<ul class="nav nav-tabs tab-list" style="margin-bottom:15px;">
                    <li role="presentation" class="selected">
                        <a href="javascript:;" id="menuConfig" role="button">菜单</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="moduleConfig" role="button">模块</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="weiConfig" role="button">微信</a>
                    </li>
                    <!-- <li role="presentation">
                    	<a href="javascript:;" id="baseConfig" role="button">基础</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="storeConfig" role="button">百货</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="diningConfig" role="button">订餐</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="hotelConfig" role="button">酒店</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="pointsConfig" role="button">积分</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="tripConfig" role="button">旅游</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="robConfig" role="button">抢购</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="groupConfig" role="button">拼团</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="duoConfig" role="button">夺宝</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="donateConfig" role="button">募捐</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="bargainConfig" role="button">砍价</a>
                    </li>
                    <li role="presentation">
                    	<a href="javascript:;" id="actiBargainConfig" role="button">微砍价</a>
                    </li> -->
                </ul>
                <div id="configCenter" class="item table-responsive">
                    <table id="list-table" class="table table-striped table-hover table-bordered table-base">
                        <tbody>
                            <tr>
                                <th class="col-1">模块</th>
                                <th class="col-2">启用</th>
                                <th class="col-3">菜单名称</th>
                                <th class="col-4">别名</th>
                                <th class="col-5">ICON图标</th>
                                <th class="col-6">访问地址</th>
                                <th class="col-7">排序</th>
                            </tr>

                            <!--顶级菜单-->
                            {foreach name = "menuBlockList" item = "topMenu"}
                            
                            <tr>
                                <td class="top-menu-name col-1">{$topMenu.name}</td>
                                <td colspan="6" class="top-menu-area">
                                <!--二级菜单块-->
                                    <table class="table table-base sub-menu-table">
                                        {foreach name = "topMenu.subList" item = "block"}
                                        <tbody class="sub-menu-block">
                                            {foreach name = "block" item = "menu"}
                                            <tr class="menu" data-id="{$menu.id}" title="拖拽我可对菜单进行分组排序">
                                                <td class="col-2">
                                                    <input mid="{$menu.id}" style="height: 16px;width: 16px;cursor: pointer;" class="is_use" type="checkbox" value="{$menu.is_use}" {if $menu.is_use eq '1'}checked{/if}>
                                                </td>
                                                <td class="col-3"><input type="text" class="menu-name" value="{$menu.name}"></td>
                                                <td class="col-4"><input type="text" class="menu-unique-name" value="{$menu.unique_name}"></td>
                                                <td class="col-5"><i class="icon iconfont">{$menu.icon}</i><input type="text" class="menu-icon" value="{$menu.icon}"></td>
                                                <td class="col-6">{$menu.url}</td>
                                                <td class="col-7">{$menu.sort}</td>

                                            </tr>
                                            {/foreach}
                                        </tbody>
                                        {/foreach}
                                    </table>
                                </td>
                            </tr>
                            {/foreach}
                        </tbody>
                        <tfoot>
                            <tr>
                                <td></td>
                                <td colspan="6"><a class="btn btn-success save">保存</a></td>
                            </tr>
                        </tfoot>
                    </table>
                    
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="__app__/admin/view/Change/configCenter/configCenter.js"></script>
<script type="text/javascript" src="__static__/js/jquery.sortable/jquery-sortable.js"></script>
<script type="text/javascript" src="__app__/admin/view/Change/configCenter/menuList.js"></script>
</body>
</html>